from airtest.core.api import *
from poco.drivers.android.uiautomation import AndroidUiautomationPoco

poco = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False)

# ----------------------------------------------------- 手机主页 -----------------------------------------------------
# UGC主版本入口
UGC_icon = poco("UGC主版本")

# 相机托盘入口（相机图标）
# Machine_icon = poco("托盘,相机支持服务卡片")
#
# # 手机相册入口(huawei)
# Comes_photo_album_huawei = poco("托盘,图库支持服务卡片")
#
# # 手机相册入口(相册图标vivo)
# Comes_photo_album_vivo = poco("相册")

# 应用包名（用于关闭APP）
UGC_package_name = "cn.migu.video.clip.walle"
# -------------------------------------------------- 手机自带相机 ---------------------------------------------------
# 录像模式按钮
# Photograph = poco("录像")
#
# # 拍照模式按钮
# local_photo_button = poco("拍照")
#
# # 获取帧率文本需要用到的元素
# fps_show_text = poco("com.huawei.camera:id/fps_show_text")
#
# # 获取分辨率文本需要用到的元素
# size_show_text = poco("com.huawei.camera:id/size_show_text")
#
# # 拍摄快门按钮
# shutter_button = poco("com.huawei.camera:id/shutter_button")
#
# # 用户获取当前相机分辨率及帧率的父级元素
# fps_elenment = poco("android.widget.FrameLayout").offspring("android.widget.LinearLayout")
#
# # 拍摄分辨率文案节点
# comes_with_camera_clarity = poco("com.huawei.camera:id/size_show_text")
#
# # 拍摄清晰度文案节点
# comes_with_camera_frame_rate = poco("com.huawei.camera:id/fps_show_text")
#
# # -------------------------------------------------- 手机自带相册 ---------------------------------------------------
# # 所有照片相册按钮元素
# Comes_photo_album_all_photos = poco("android.widget.FrameLayout").offspring("本地相册").child("android.widget.RelativeLayout")
# #
# # # 相册中首个视频文本时间获取
# Comes_photo_album_time = poco("android.widget.FrameLayout").offspring("androidx.recyclerview.widget.RecyclerView").child("android.widget.RelativeLayout")

# --------------------------------------------------- UGC主页 -----------------------------------------------------
# 相机拍摄入口
Camera_shooting = poco(text="相机拍摄")

# 相册入口
album = poco(text="相册")

# 主页tattle
homepage_tattle = poco(text="UGC主版本")

# 拍摄/相册入口
UGC_entrance = poco(text="拍摄/相册 tab")

# demo包的悬浮球
demo_levitated_sphere = poco("android.widget.ImageView")

# --------------------------------------------------- 创作页面 -----------------------------------------------------
# 拍摄入口
create_photograph = poco(text="拍摄")

# 创作入口
create_create = poco(text="创作")

# 模板入口
create_template = poco(text="创作")

# 更多入口
create_more = poco(text="更多")

# ----------------------------------------------------崩溃弹窗--------------------------------------------------------------
#     崩溃弹窗
crash_popup = poco("android:id/parentPanel")

# “UGC主版本”无响应。是否将其关闭？
crash_popup_text = poco("android:id/alertTitle")

# 崩溃弹窗-关闭
crash_popup_close = poco("android:id/aerr_close")

# 崩溃弹窗-等待
crash_popup_wait = poco("android:id/aerr_wait")

# -----------------------------------------------------拍摄页(页面节点元素)----------------------------------------------------------
# 视频按钮
shoot_page_video = poco(text="视频")

# 拍照按钮
shoot_page_pictures = poco(text="拍照")

# 配乐按钮
shooting_page_Music_button = poco("cn.migu.video.clip.walle:id/clip_rc_music_name_tv")

# 相机翻转节点
shooting_page_rollover_Button = poco("cn.migu.video.clip.walle:id/clip_rc_btn_switch_img")

# 闪光灯
shooting_page_flashlight_elenment = poco("cn.migu.video.clip.walle:id/clip_rc_btn_light_img")

# 美化节点
shooting_page_beautify = poco("cn.migu.video.clip.walle:id/clip_rc_btn_beautify_img")

# 滤镜节点
shooting_page_filter = poco("cn.migu.video.clip.walle:id/clip_rc_btn_filter_img")

# 快慢速节点
shooting_page_fast_slow_speed = poco("cn.migu.video.clip.walle:id/clip_rc_btn_speed_img")

# 比例节点
shooting_page_proportion = poco("cn.migu.video.clip.walle:id/clip_rc_btn_change_img")

# 倒计时节点
shooting_page_countdown = poco("cn.migu.video.clip.walle:id/clip_rc_btn_delay_img")

# 道具节点
shooting_page_prop = poco("cn.migu.video.clip.walle:id/clip_rc_img_utls")

# 相册节点
shooting_page_album = poco("cn.migu.video.clip.walle:id/clip_rc_ic_album")

# 合拍节点
shooting_page_in_time = poco("cn.migu.video.clip.walle:id/clip_rc_ic_follow")

# 拍摄页屏幕节点(用关于获取画面比例)
shooting_page_screen = poco("cn.migu.video.clip.walle:id/clip_rc_btn_change_img")

# 右侧功能栏展开功能节点
shooting_page_expand = poco("cn.migu.video.clip.walle:id/walle_clip_rc_img_control_arrow")

# 拍摄按钮
shooting_button = poco("cn.migu.video.clip.walle:id/clip_rc_rb_start")

# 拍照按钮
take_pictures_button = poco("cn.migu.video.clip.walle:id/clip_rc_rb_take_photo_iv")

# 侧边栏功能节点（用于获取功能子节点数量）
shooting_page_side_function_bar = poco("cn.migu.video.clip.walle:id/clip_rc_function_menu_container")

# 底部拍15S按钮节点
shooting_page_15_seconds = poco(text="15s")

# 底部拍60S按钮节点
shooting_page_60_seconds = poco(text="60s")

# 底部拍3min按钮节点
shooting_page_3_min = poco(text="3min")

# 底部拍摄时长节点用于获取文本进行断言
obtain_the_duration_at_the_bottom = poco("cn.migu.video.clip.walle:id/clip_rc_time_selecter_text_container")

# 下一步✓按钮节点
shooting_page_next_button = poco("cn.migu.video.clip.walle:id/clip_rc_next_img")

# 删除视频×按钮节点
shooting_page_delete_video = poco("cn.migu.video.clip.walle:id/clip_rc_delete_img")

# 弹窗取消删除按钮节点
shooting_page_cancel_deleting_video = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 弹窗确认删除按钮节点
shooting_page_confirm_to_delete_video = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# 拍摄时长节点
shooting_page_shooting_duration = poco("cn.migu.video.clip.walle:id/clip_rc_progressbar_time")

# 视频页返回按钮节点
shooting_page_return = poco("cn.migu.video.clip.walle:id/clip_rc_kklive_back")

# 视频页返回弹窗重新拍摄节点
shooting_page_return_re_shoot = poco("cn.migu.video.clip.walle:id/clip_rc_tv_retake")

# 视频页返回弹窗退出节点
shooting_page_return_exit = poco("cn.migu.video.clip.walle:id/clip_rc_tv_exit")

# 视频页返回弹窗取消节点
shooting_page_return_cancel = poco("cn.migu.video.clip.walle:id/clip_rc_tv_cancel")

# -------------------------------拍摄页(配乐功能节点元素)------------------------------------------
# 歌曲一和歌曲二
shooting_page_Song_one = poco(text="选中歌曲一")
shooting_page_Song_two = poco(text="选中歌曲二")

# 配乐按钮获取成功时的文案
shooting_page_music_text = poco("cn.migu.video.clip.walle:id/clip_rc_music_name_tv")

# 更多配乐按钮
shooting_page_More_music_tracks = poco("cn.migu.video.clip.walle:id/clip_et_music_library_tv")

# 删除配乐节点
shooting_page_delete_music = poco("cn.migu.video.clip.walle:id/clip_et_music_delete")

# 删除配乐弹窗“是”元素节点
shooting_page_confirm_delete = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# 配乐工具栏获取音乐文案节点
music_columnpoco_elenment = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_edit_panel").offspring("cn.migu.video.clip.walle:id/clip_et_music_pager").child("android.widget.RelativeLayout").offspring("android.widget.FrameLayout")

# ------------------------------------------------------------拍摄页(美化功能节点元素)---------------------------------------------------
# 美化工具栏节点
beautify_toolbar = poco("cn.migu.video.clip.walle:id/clip_et_selectanim")

# 美化功能开启时节点信息，用于获取文本
beautify_open_elenment = poco("cn.migu.video.clip.walle:id/clip_et_beautify_open_tv")

# 美化功能关闭时节点信息，用于获取文本
beautify_close_elenment = poco("cn.migu.video.clip.walle:id/clip_et_beautify_open_tv")

# 美颜功能开关按钮节点
beautify_switch = poco("cn.migu.video.clip.walle:id/clip_et_beautify_open_cb")

# 美化功能饱和度条节点
beautify_element_exists = poco("cn.migu.video.clip.walle:id/currentprogress")

# 磨皮节点
beautify_element_dermabrasion = poco(text="磨皮")

# ------------------------------------------------------------拍摄页(滤镜功能节点元素)---------------------------------------------------
# 滤镜工具栏节点（用于断言是否存在）
shooting_page_filter_toolbar = poco("cn.migu.video.clip.walle:id/clip_et_selectanim")

# 滤镜工具栏关闭(禁用)按钮
shooting_page_filter_close = poco("cn.migu.video.clip.walle:id/clip_sticker_remove")

# 滤镜饱和程度条
shooting_page_filter_degree_bar = poco("cn.migu.video.clip.walle:id/seekbar")

# 滤镜饱和程度条(用于断言滤镜参数与预期参数是否准确)
shooting_page_assert_filter_text = poco("cn.migu.video.clip.walle:id/currentprogress")

# 应用滤镜时屏幕展示名称节点
shooting_page_filter_apply = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android.widget.RelativeLayout")

# 人像
shooting_page_filter_portrait = poco(text="人像")

# 自然
shooting_page_filter_nature = poco(text="自然")

# ------------------------------------------------------------拍摄页(快慢速功能节点元素)---------------------------------------------------
# 快慢速"极慢"节点
fast_slow_speed_extremely_slow = poco(text="极慢")

# 快慢速"慢"节点
fast_slow_speed_slow = poco(text="慢")

# 快慢速"标准"节点
fast_slow_speed_standard = poco(text="标准")

# 快慢速"快"节点
fast_slow_speed_fast = poco(text="快")

# 快慢速"极快"节点
fast_slow_speed_extremely_fast = poco(text="极快")


# ------------------------------------------------------------拍摄页(倒计时功能节点元素)---------------------------------------------------
# 倒计时节点
countdown_node = poco("cn.migu.video.clip.walle:id/clip_rc_textview_countdown")

# ------------------------------------------------------------拍摄页(道具功能节点元素)--------------------------------------------
# 道具栏节点，用于获取节点下有多少个子节点（道具）
prop_itsems = poco("androidx.recyclerview.widget.RecyclerView")

# 道具节点（需要在后面加索引和）
shooting_page_select_prop = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_shuchuang_rc_vpg").offspring("androidx.recyclerview.widget.RecyclerView").child("android.widget.LinearLayout")

# 冰雪贺新春
prop_ice_celebrate_Chinese_new_year = poco(text="冰雪贺新春")

# 道具清除按钮
shooting_page_item_removal = poco("cn.migu.video.clip.walle:id/clip_sticker_remove")

# 节日分类节点
shooting_page_item_festival_classification = poco(text="节日")

# 拍摄后更换道具弹窗取消按钮节点
shooting_page_item_cancel_delete = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 拍摄后更换道具弹窗确认按钮节点
shooting_page__item_confirmation_delete = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# ------------------------------------------拍摄页(合拍节点元素)--------------------------------------------
# 选中歌曲一节点
in_time_song_one = poco(text="选中歌曲一")

# 选中歌曲二节点
in_time_song_two = poco(text="选中歌曲二")

# 合拍功能标题tittle
in_time_tittle = poco("cn.migu.video.clip.walle:id/clip_comm_title_tv")

# 合拍相机翻转按钮节点
in_time_rollover_Button = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android.widget.ImageView")

# 合拍拍摄时长节点
in_time_shooting_duration = poco("cn.migu.video.clip.walle:id/clip_rc_progressbar_time")
# -----------------------------------------------------相册页（页面元素节点）--------------------------------------------------------------------
# 全部按钮
album_full_list = poco(text="全部")

#视频按钮
album_video_list = poco(text="视频")

# 照片按钮
album_photo_list = poco(text="照片")

# 素材库按钮
album_material_library_list = poco(text="素材库")

# 全部按钮节点（用于获取相册名称的文案）
album_full_node = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_album_tab").child("android.widget.FrameLayout").offspring("cn.migu.video.clip.walle:id/title_container").child("android.widget.FrameLayout")

# 素材库的"栏目一"节点
album_material_column_one = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_net_tab").offspring("cn.migu.video.clip.walle:id/scroll_view").offspring("cn.migu.video.clip.walle:id/title_container").child("android.widget.FrameLayout")

# 首个选择视频的节点（如要选择多个调用封装方法）
album_select_button = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_album_vpg").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_rc_album_rcv").child("cn.migu.video.clip.walle:id/clip_ed_item_rl")

# 首个选择视频的节点(备用节点，在第七条用例中需要调用不同的变量才可以)
album_select_button1 = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_album_vpg").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_rc_album_rcv").child("cn.migu.video.clip.walle:id/clip_ed_item_rl")

# 每个视频左下角时间的子节点
video_duration = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_album_vpg").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_rc_album_rcv").child("cn.migu.video.clip.walle:id/clip_ed_item_rl")


# -----------------------------------相册页（全部列表元素节点）-----------------------------------------------
# 全部按钮后面的下拉按钮
album_drop_down = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_album_tab").child("android.widget.FrameLayout").offspring("cn.migu.video.clip.walle:id/title_container").offspring("android.widget.ImageView")

# 全部列表下所有照片列表元素
all_photo_lists = poco(text="所有照片")

# 全部列表下所有相册分类的节点（使用变量后面跟[]索引确定第几个分类）
album_all_categories = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_layout").offspring("cn.migu.video.clip.walle:id/clip_rc_sticky_content").offspring("cn.migu.video.clip.walle:id/clip_rc_album_folder_rcv").child("android.widget.RelativeLayout")


# -----------------------------------相册页（预览栏元素节点）-----------------------------------------------
# 下方预览栏元素，可以通过此元素获取已选择的素材坐标实现拖动
preview_bar_elow = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_select_file_view").offspring("cn.migu.video.clip.walle:id/walle_clip_file_list_rv").child("android.widget.FrameLayout")

# 下方预览栏中首个素材节点，如果删除需要后面增加子节点
material_deletion_button = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_rc_album_select_file_view").offspring("cn.migu.video.clip.walle:id/walle_clip_file_list_rv").child("android.widget.FrameLayout")

# 预览模式中的返回按钮
return_button_in_preview = poco("cn.migu.video.clip.walle:id/walle_ugc_clip_close_iv")

# 下一步按钮节点
album_next_button = poco("cn.migu.video.clip.walle:id/clip_rc_album_next_step")

# 相册添加素材动画节点
album_animation  = poco("android.widget.LinearLayout")

# 预览栏删除节点
material_deletion_delete_button = poco("cn.migu.video.clip.walle:id/walle_ugc_clip_delete_iv")


# --------------------------------------------------装饰页（页面元素节点）---------------------------------------------------------
# 装饰页上一步按钮
decoration_page_return_button = poco("cn.migu.video.clip.walle:id/clip_comm_title_left_btn")

# 装饰页发布视频按钮
decoration_page_release_video = poco("cn.migu.video.clip.walle:id/walle_ugc_clip_publish_view")

# 设视频彩铃节点
set_video_ringtone = poco("cn.migu.video.clip.walle:id/walle_ugc_clip_rbt_iv")

# 配乐按钮节点
decoration_page_background_music = poco("cn.migu.video.clip.walle:id/clip_rc_music_name_tv")

# 右侧侧边栏节点（用于获取功能数量）
decoration_page_sidebar = poco("cn.migu.video.clip.walle:id/all_op_layout")

# 装饰页保存按钮节点
decoration_page_save = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_save").child("android.widget.ImageView")

# 剪辑功能按钮节点
edit_button = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_clip").child("android.widget.ImageView")

# 文字功能按钮节点
decoration_page_text_function = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_text_handle").child("android.widget.ImageView")

# 滤镜功能按钮节点
decoration_page_filter_function = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_filter_handle").child("android.widget.ImageView")

# 特效功能按钮节点
decoration_page_special_effects = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_tx_handle").child("android.widget.ImageView")

# 贴纸功能按钮节点
decoration_page_sticker = poco("cn.migu.video.clip.walle:id/clip_et_sticker_iv")

# 比例功能按钮节点
decoration_page_proportional = poco("cn.migu.video.clip.walle:id/clip_et_rate_handle")

# 展开功能按钮节点
decoration_page_expand = poco("cn.migu.video.clip.walle:id/clip_et_up_down_arrow_iv")

# 上一步二次确认弹窗节点
decoration_page_return_notification = poco("android.widget.FrameLayout").offspring("android:id/content").child("android.widget.LinearLayout")

# 上一步二次确认弹窗取消节点
decoration_page_return_cancel = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 上一步二次确认弹窗确定节点
decoration_page_return_confirm = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# --------------------------------------------------装饰页（视频超时弹窗元素节点）---------------------------------------------------------
# 素材超过48S提示自动裁剪弹窗父级元素（用于等待或者判断是否出现）
tip_to_crop_pop_up_window = poco("android.widget.FrameLayout").offspring("android:id/content").child("android.widget.LinearLayout")

# 装饰页弹窗文案节点（当前时间已超过......）
decoration_pop_up_copy = poco("cn.migu.video.clip.walle:id/clip_comm_dialog_msg")

# 素材超过48S提示自动裁剪弹窗子级元素“是”
tip_to_crop_pop_up_window_correct = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 素材超过48S提示自动裁剪弹窗子级元素“去裁剪”
tip_to_crop_pop_up_window_cropping = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# --------------------------------------------------装饰页（保存动画弹窗元素节点）---------------------------------------------------------
decoration_page_save_animation = poco("cn.migu.video.clip.walle:id/ckip_ed_message_tv")


# --------------------------------------------------装饰页（配乐功能元素节点）---------------------------------------
# 配乐栏歌曲一
background_music_one = poco(text="选中歌曲一")

# 配乐栏歌曲二
background_music_two = poco(text="选中歌曲二")

# 原生音量文本值节点
background_music_original_sound = poco("cn.migu.video.clip.walle:id/clip_et_origin_sound_value_tv")

# 配乐音量文本值节点
background_music_Soundtrack = poco("cn.migu.video.clip.walle:id/clip_et_source_music_value_tv")

# 配乐重置按钮节点
background_music_reset = poco("cn.migu.video.clip.walle:id/walle_ugc_clip_iv_reset_music")

# 配乐重置弹窗取消节点
background_music_reset_cancel = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 配乐重置弹窗确认节点
background_music_reset_confirm = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# 更多配乐
background_music_more = poco("cn.migu.video.clip.walle:id/clip_et_music_library_tv")

# 剪辑配乐按钮
background_music_clip = poco("cn.migu.video.clip.walle:id/clip_et_music_clip")

# 剪辑配乐时间文案用于剪辑断言
background_music_clipsoundtrack_time = poco("cn.migu.video.clip.walle:id/clip_et_clip_time_start_iv")

# 剪辑取消按钮节点
background_music_clip_cancel = poco("cn.migu.video.clip.walle:id/clip_et_close_iv")

# 剪辑确认按钮节点
background_music_clip_confirm = poco("cn.migu.video.clip.walle:id/clip_et_clip_save")

# 配乐删除按钮
background_music_delete = poco("cn.migu.video.clip.walle:id/clip_et_music_delete")

# 配乐删除弹窗取消按钮
background_music_delete_cancel = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 配乐删除弹窗确认按钮
background_music_delete_confirm = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# 配乐栏配乐文案节点
background_music_name_text = poco("cn.migu.video.clip.walle:id/walle_ugc_clip_empty_recommend_tv")

# ----------------------------------装饰页（剪辑功能元素节点）---------------------------------------------------------
# 剪辑功能中总视频时长节点
edit_total_video_duration = poco("cn.migu.video.clip.walle:id/selected_time_tv")

# 剪辑功能中第一段视频时长节点
edit_total_first_paragraph = poco("cn.migu.video.clip.walle:id/clipTimeTV")

# 视频暂停按钮
edit_pause = poco("cn.migu.video.clip.walle:id/playIconIV")

# 剪辑功能中的保存按钮节点
edit_save = poco("cn.migu.video.clip.walle:id/clip_comm_title_right_btn")

# 剪辑功能中的取消按钮节点
edit_cancel = poco("cn.migu.video.clip.walle:id/clip_comm_title_left_btn")

# 剪辑功能中点击保存如果视频大于48S出现的提示弹窗节点
edit_tooltip_box =  poco("cn.migu.video.clip.walle:id/clip_comm_dialog_msg")

# 剪辑功能中点击保存如果视频大于48S出现的提示弹窗"继续编辑"节点
edit_tooltip_box_continue_editing = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 剪辑功能中点击保存如果视频大于48S出现的提示弹窗"继续编辑"节点
edit_tooltip_box_yes = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# 剪辑功能中视频条滑块(还未滑动视频条)（用于修改视频时长）
edit_video_slider = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("android.widget.ImageView")

# 剪辑功能滑动视频条后的滑块，后标0为左，1为右
edit_video_slide_slider = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("cn.migu.video.clip.walle:id/multiTrackLayout").child("android.widget.ImageView")

# 剪辑功能取消时弹窗提示取消节点
edit_cancel_cancel = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 剪辑功能取消时弹窗提示退出节点
edit_cancel_exit = poco("cn.migu.video.clip.walle:id/clip_comm_sure_tv")

# 视频条元素节点
edit_vdeo_bar = poco("cn.migu.video.clip.walle:id/multiTrackLayout")

# 剪辑分割功能节点
edit_segmentation = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("cn.migu.video.clip.walle:id/op_split_layout").child("android.widget.ImageView")

# 剪辑分割处节点
edit_division = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("android.widget.ImageView")

# 剪辑转场动画缩略图节点
edit_transition = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("android.widget.ImageView")

# 剪辑转场倒影节点
edit_transition_reflection = poco(text="倒影")

# 剪辑转场取消节点
edit_transition_cancel = poco("cn.migu.video.clip.walle:id/walle_clip_trans_btn_cancle")

# 剪辑转场确定节点
edit_transition_confirm = poco("cn.migu.video.clip.walle:id/walle_clip_trans_btn_confirm")

# 剪辑变速功能节点
edit_variable_speed = poco("cn.migu.video.clip.walle:id/variable_speedIV")

# 变速工具栏title节点
edit_variable_title = poco("cn.migu.video.clip.walle:id/voiceTitle")

# 剪辑变速取消X节点
edit_variable_speed_cancel = poco("cn.migu.video.clip.walle:id/cancelIV")

# 剪辑变速确定√节点
edit_variable_speed_confirm = poco("cn.migu.video.clip.walle:id/comfirmIV")

# 剪辑音量功能节点
edit_volume = poco("cn.migu.video.clip.walle:id/voiceIV")

# 剪辑音量取消×节点
edit_volume_cancel = poco("cn.migu.video.clip.walle:id/cancelIV")

# 剪辑音量确认√节点
edit_volume_confirm = poco("cn.migu.video.clip.walle:id/comfirmIV")

# 剪辑音量值节点
edit_volume_text = poco("cn.migu.video.clip.walle:id/voiceProgressTV")

# 剪辑音量title节点
edit_volume_title = poco("cn.migu.video.clip.walle:id/voiceTitle")

# 剪辑旋转功能节点
edit_rotate = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("cn.migu.video.clip.walle:id/op_rotation_layout").child("android.widget.ImageView")

# 剪辑铺满功能节点
edit_cover = poco("cn.migu.video.clip.walle:id/fullIV")

# 剪辑复制功能节点
edit_copy = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("cn.migu.video.clip.walle:id/op_copy_layout").child("android.widget.ImageView")

# 剪辑倒放功能节点
edit_inverted = poco("cn.migu.video.clip.walle:id/reverseIV")

# 剪辑倒放动画弹窗节点
edit_inverted_animation = poco("android.view.View")

# 剪辑删除功能节点
edit_delete = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("cn.migu.video.clip.walle:id/op_delete_layout").child("android.widget.ImageView")

# 剪辑从相册添加功能节点
edit_add_material = poco("cn.migu.video.clip.walle:id/addVideoFrameIV")

# 剪辑撤销功能节点
edit_revoke = poco("cn.migu.video.clip.walle:id/revocationIV")

# 剪辑比例功能节点
edit_proportion = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("android:id/content").offspring("cn.migu.video.clip.walle:id/op_rate_layout").child("android.widget.ImageView")

# 原始比例
edit_proportion_original = poco("cn.migu.video.clip.walle:id/rate_primeval_layout")

# 9:16比例
edit_proportion_9_16 = poco("cn.migu.video.clip.walle:id/rate_9_16_layout")

# 16:9比例
edit_proportion_16_9 = poco("cn.migu.video.clip.walle:id/rate_16_9_layout")

# 4：3比例
edit_proportion_4_3 = poco("cn.migu.video.clip.walle:id/rate_4_3_layout")

# 1:1比例
edit_proportion_1_1 = poco("cn.migu.video.clip.walle:id/rate_1_1_layout")

# 确认比例节点
edit_proportion_confirm = poco("cn.migu.video.clip.walle:id/comfirmIV")

# ----------------------------------装饰页（文字功能元素节点）---------------------------------------------------------
# 文字X按钮节点
decoration_page_text_function_cancel = poco("cn.migu.video.clip.walle:id/clip_et_icon_close")

# 文字确定按钮节点
decoration_page_text_function_confirm = poco("cn.migu.video.clip.walle:id/clip_et_tv_sure")

# 文字输入框节点
decoration_page_text_function_input = poco("cn.migu.video.clip.walle:id/text_edit_et")

# 文字“点击输入文字”文案节点，用于获取输入的文案
decoration_page_text_function_input_text = poco("cn.migu.video.clip.walle:id/text_edit_et")

# 文字清除文案节点
decoration_page_text_function_delete = poco("cn.migu.video.clip.walle:id/text_edit_iv_clear_text")

# 文字节点
decoration_page_text_function_characters = poco(text="字体")

# 颜色节点
decoration_page_text_function_colour = poco(text="颜色")

# 气泡节点
decoration_page_text_function_bubble = poco(text="气泡")

# 描边节点
decoration_page_text_function_stroke = poco(text="描边")

# 文本节点
decoration_page_text_function_text = poco(text="文本")

# 背景节点
decoration_page_text_function_background = poco(text="背景")

# 字体节点
decoration_page_text_function_font = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/text_edit_vpg").offspring("cn.migu.video.clip.walle:id/walle_ugc_clip_typeface_rcv").child("android.widget.RelativeLayout")

# 选择颜色的节点
decoration_page_text_function_choice_colour = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/text_edit_vpg").child("androidx.appcompat.widget.LinearLayoutCompat").offspring("cn.migu.video.clip.walle:id/text_edit_color_rv").child("android.widget.RelativeLayout")

# 选择文本颜色的节点
decoration_page_text_function_choice_text = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/text_edit_vpg").child("androidx.appcompat.widget.LinearLayoutCompat").child("android.widget.LinearLayout").offspring("cn.migu.video.clip.walle:id/rcv").child("android.widget.RelativeLayout")

# 选择气泡的节点
decoration_page_text_function_choice_bubble = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/text_edit_vpg").offspring("cn.migu.video.clip.walle:id/text_edit_bubble_rv").child("android.widget.RelativeLayout")

# 点击文字的编辑元素节点
decoration_page_text_editing = poco("cn.migu.video.clip.walle:id/container")

# 点击文字的编辑元素节点删除
decoration_page_text_editing_delete = poco("cn.migu.video.clip.walle:id/tv_menu_delete")

# 点击文字的编辑元素节点编辑
decoration_page_text_editing_edit = poco("cn.migu.video.clip.walle:id/tv_menu_edit")

# 点击文字的编辑元素节点设置时长
decoration_page_text_editing_time = poco("cn.migu.video.clip.walle:id/tv_menu_duration")

# 文字设置时长拖动按钮节点
decoration_page_text_editing_time_drag = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.LinearLayout").offspring("cn.migu.video.clip.walle:id/sticker_ed_schedule_view").child("android.widget.RelativeLayout").child("android.widget.RelativeLayout").child("android.widget.ImageView")

# 文字设置时长取消节点
decoration_page_text_editing_time_cancel = poco("cn.migu.video.clip.walle:id/cancel_edit")

# 文字设置时长确认节点
decoration_page_text_editing_time_confirm = poco("cn.migu.video.clip.walle:id/confirm_edit")


# ----------------------------------装饰页（滤镜功能元素节点）---------------------------------------------------------

# 滤镜工具栏节点
decoration_page_filter_toolbar = poco("cn.migu.video.clip.walle:id/clip_et_selectanim")

# 初心滤镜节点
decoration_page_filter_original_aspiration = poco(text="初心")

# 清除滤镜节点
decoration_page_filter_clean = poco("cn.migu.video.clip.walle:id/clip_sticker_remove")

# 滤镜强度条节点
decoration_page_filter_strength_bar = poco("cn.migu.video.clip.walle:id/seekbar")


# ----------------------------------装饰页（特效功能元素节点）---------------------------------------------------------

# 特效效果节点
decoration_page_special_effects_effect = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").child("android.widget.RelativeLayout").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_tx_rcv").child("android.widget.LinearLayout")

# 特效取消节点
decoration_page_special_effects_cancel = poco("cn.migu.video.clip.walle:id/tv_cancel")

# 特效播放节点
decoration_page_special_effects_play = poco("cn.migu.video.clip.walle:id/iv_play_pause")

# 特效播放时间节点
decoration_page_special_effects_playback_time = poco("cn.migu.video.clip.walle:id/tv_current")

# 特效总时长节点
decoration_page_special_effects_total_time = poco("cn.migu.video.clip.walle:id/tv_total")

# 特效保存节点
decoration_page_special_effects_confirm = poco("cn.migu.video.clip.walle:id/tv_save")

# 特效添加节点
decoration_page_special_effects_add = poco("cn.migu.video.clip.walle:id/ll_add")

# 特效面板X节点
decoration_page_special_effects_panel_cancel = poco("cn.migu.video.clip.walle:id/iv_cancel")

# 特效面板✓节点
decoration_page_special_effects_panel_confirm = poco("cn.migu.video.clip.walle:id/iv_confirm")

# 特效面板特效选择节点
decoration_page_special_effects_panel_choice = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/grid_tx").offspring("cn.migu.video.clip.walle:id/rv_tx").child("android.widget.LinearLayout")

# 特效选择仙女变身节点
decoration_page_special_effects_panel_fairy = poco(text="仙女变身")

# 特效取消不保留节点
decoration_page_special_effects_not_retain = poco("cn.migu.video.clip.walle:id/clip_comm_cancel_tv")

# 特效title节点
decoration_page_special_effects_panel_title = poco("cn.migu.video.clip.walle:id/tv_title")

# 特效替换节点
decoration_page_special_effects_panel_replace = poco("cn.migu.video.clip.walle:id/ll_replace")

# 特效删除节点
decoration_page_special_effects_panel_delete = poco("cn.migu.video.clip.walle:id/ll_remove")



# ----------------------------------装饰页（贴纸功能元素节点）-----------------------------------------------------

# 选择贴纸分类节点
decoration_page_sticker_classification = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_shuchuang_rs_tab").offspring("cn.migu.video.clip.walle:id/scroll_view").offspring("cn.migu.video.clip.walle:id/title_container").child("android.widget.FrameLayout")

# 选择贴纸节点
decoration_page_sticker_effect = poco("cn.migu.video.clip.walle:id/dokit_app_contentview_id").offspring("cn.migu.video.clip.walle:id/clip_et_edit_panel").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_et_selectanim").child("android.widget.RelativeLayout").offspring("cn.migu.video.clip.walle:id/clip_shuchuang_rc_vpg").offspring("androidx.recyclerview.widget.RecyclerView").child("android.widget.LinearLayout")

# 删除贴纸节点
decoration_page_sticker_delete = poco("cn.migu.video.clip.walle:id/delete_op_tv")

# 更换贴纸节点
decoration_page_sticker_replace = poco("cn.migu.video.clip.walle:id/edit_op_tv")

# 设置贴纸时长节点
decoration_page_sticker_time = poco("cn.migu.video.clip.walle:id/duration_op_tv")


# ----------------------------------装饰页（比例功能元素节点）-----------------------------------------------------

# 视频页面节点用于获取比例
decoration_page_video_page = poco("cn.migu.video.clip.walle:id/clip_et_surface")

# ----------------------------------装饰页（导出页面功能元素节点）-----------------------------------------------------

# 导出页面播放按钮节点
decoration_page_release_video_play = poco("cn.migu.video.clip.walle:id/playBtn")

# 导出页面文本节点
decoration_page_release_video_text = poco("cn.migu.video.clip.walle:id/path_tv")

# ----------------------------------装饰页（设视频彩铃功能元素节点）-----------------------------------------------------

# 播放按钮元素节点
set_video_ringtone_play = poco("cn.migu.video.clip.walle:id/playBtn")